<?php
session_start();
$_SESSION = array();
session_destroy();
setcookie('PHPSESSID', '', time() - 300, '/', '', 0);
echo '<script type="text/javascript">window.location = "index.php";</script>';
?>
